package com.atguigu04.override.exer2;

/**
 * ClassName: Circle
 * Package: com.atguigu03._extends.exer2
 * Description:
 *  圆类
 * @Author ZY
 * @Create 20:54
 * @Version 1.0
 */
public class Circle {
    private double radius;

    public Circle(){
        this.radius = 1;
    }

    public double getRadius(){
        return radius;
    }

    public void setRadius(double radius){
        this.radius = radius;
    }

    //求圆面积
    public double findArea(){
        return 3.14 * radius * radius;
    }
}
